home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
031-040
/
amok37
/
skrÄbel
/
sc_computer-mod-asm.zoo
/
Skräbel-src
/
sc_Computer-Mod.ASM
/
SpielZugChar.ASM
< prev
next >
Wrap
Assembly Source File
|
1990-03-19
|
1KB
|
61 lines
;(*****************************************************************************
;
; :Program. SpielZugChar.ASM
; :Author. Georg Brünsing
; :Address. Grechte 2, D-4156 Willich 3
; :Phone. 02156/7534
; :ShortCut. gb
; :Support. -
; :Version. 1.0
; :Date. 20-Feb-89
; :Copyright. PD
; :Language. Assembler
; :Translator. Profimat / DATA BECKER
; :Imports. -
; :Update. -
; :History. -
; :ModHistory. -
; :Contents. Assembler Source für Skräbel
; :Remark. -
; :Usage. -
;
;*****************************************************************************)
INCLUDE "Rec.ASM"
SpielZugChar:
; Eingang in A2 = ComputerMsgPtr
; in D0 = x
; in D1 = y
; Ausgang in D0 = CHAR
\ComMsgPtr EQUR A2
\ZugRing EQUR A1
\RSpZug EQUR A0
\x EQUR D0
\y EQUR D1
\Char EQUR D0
\Off EQUR D2
\Schleife EQUR D2
LEA ZugRing(\ComMsgPtr) , \ZugRing
MOVE.W AkZugRing(\ComMsgPtr) , \Off
SUBQ.W #BeginZugRing , \Off
MULU #ZugRingSize , \Off
LEA (\ZugRing,\Off.W) , \ZugRing
LEA RSpZug(\ZugRing) , \RSpZug
MOVEQ #MaxSpZuege-1 , \Schleife
\FOR:
CMP.W XPos(\RSpZug) , \x
BNE.S \END_FOR
CMP.W YPos(\RSpZug) , \y
BNE.S \END_FOR
MOVE.B char(\RSpZug) , \Char
RTS
\END_FOR:
ADDQ.L #SpielerZugSize , \RSpZug
DBRA \Schleife , \FOR
TRAP #1
END